import { Rule } from "./types";

export const Flake8DatetimezRuleList: Rule[] = [
    {
        code: "DTZ001",
        name: "call-datetime-without-tzinfo",
        descEn: "The use of datetime.datetime() without tzinfo argument is not allowed",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DTZ002",
        name: "call-datetime-today",
        descEn: "The use of datetime.datetime.today() is not allowed, use datetime.datetime.now(tz=) instead",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DTZ003",
        name: "call-datetime-utcnow",
        descEn: "The use of datetime.datetime.utcnow() is not allowed, use datetime.datetime.now(tz=) instead",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DTZ004",
        name: "call-datetime-utcfromtimestamp",
        descEn: "The use of datetime.datetime.utcfromtimestamp() is not allowed, use datetime.datetime.fromtimestamp(ts, tz=) instead",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DTZ005",
        name: "call-datetime-now-without-tzinfo",
        descEn: "The use of datetime.datetime.now() without tz argument is not allowed",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DTZ006",
        name: "call-datetime-fromtimestamp",
        descEn: "The use of datetime.datetime.fromtimestamp() without tz argument is not allowed	",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DTZ007",
        name: "call-datetime-strptime-without-zone",
        descEn: "The use of datetime.datetime.strptime() without %z must be followed by .replace(tzinfo=) or .astimezone()",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DTZ011",
        name: "call-date-today",
        descEn: "The use of datetime.date.today() is not allowed, use datetime.datetime.now(tz=).date() instead",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DTZ012",
        name: "call-date-fromtimestamp",
        descEn: "The use of datetime.date.fromtimestamp() is not allowed, use datetime.datetime.fromtimestamp(ts, tz=).date() instead",
        descCn: "",
        autoFix: false,
    },
];